﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.ModelManager.HaiSheng
{
    /// <summary>
    /// 烟农的详细信息
    /// </summary>
    public class FarmerInfoModel
    {
        /// <summary>
        /// 烟农合同号
        /// </summary>
        public string ContractCd { get; set; }

        /// <summary>
        /// 烟农编号
        /// </summary>
        public string FarmerCd { get; set; }

        /// <summary>
        /// 烟农姓名
        /// </summary>
        public string FarmerName { get; set; }

        /// <summary>
        /// 烟农写卡次数
        /// </summary>
        public int WriteCount { get; set; }

        /// <summary>
        /// 银行卡号
        /// </summary>
        public string BankNo { get; set; }

        /// <summary>
        /// 身份证号码
        /// </summary>
        public string IDNo { get; set; }

        /// <summary>
        /// 烟农手机号码
        /// </summary>
        public string Tel { get; set; }

        /// <summary>
        /// 村组编码
        /// </summary>
        public string VillageCd { get; set; }

        /// <summary>
        /// 村组名称
        /// </summary>
        public string VillageName { get; set; }

        /// <summary>
        /// 种植面积
        /// </summary>
        public string PlantArea { get; set; }

        /// <summary>
        /// 合同重量（该项为指令性MayPurWght 和出口备货ExpPurWght的总和）
        /// </summary>
        public int ContractWeight { get; set; }

        /// <summary>
        /// 丰产烟合同重量
        /// </summary>
        public int OutPlanWeight { get; set; }

        /// <summary>
        /// 指令性合同量
        /// </summary>
        public int MayPurWght { get; set; }

        /// <summary>
        /// 出口备货合同量
        /// </summary>
        public int ExpPurWght { get; set; }

        /// <summary>
        /// 剩余指令性合同量（只有查询具体某一个烟农时才有此项值）
        /// </summary>
        public double LeftMayPurWght { get; set; }

        /// <summary>
        /// 剩余出口备货合同量（只有查询具体某一个烟农时才有此项值）
        /// </summary>
        public double LeftExpPurWght { get; set; }

        /// <summary>
        /// 品种信息
        /// </summary>
        public List<VarietyInfoEntity> VarietyInfo { get; set; }
    }

    public class VarietyInfoEntity
    {
        /// <summary>
        /// 品种代码
        /// </summary>
        public string VarietyCd { get; set; }

        /// <summary>
        /// 品种名称
        /// </summary>
        public string VarietyName { get; set; }
    }
}
